import "./assets/main.scss";
import { createApp } from "vue";
import App from "./App.vue";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import router from "./router";
import { createPinia } from "pinia"; // 导入依赖
//导入持久化插件
import { createPersistedState } from "pinia-persistedstate-plugin";

import zhCn from'element-plus/es/locale/lang/zh-cn';

const app = createApp(App);
const pinia = createPinia(); // 创建pinia对象
const persist = createPersistedState();
//pinia使用持久化插件
pinia.use(persist);
app.use(ElementPlus, { locale: zhCn });
app.use(pinia);
app.use(ElementPlus);
app.use(router);
app.mount("#app");
